package com.xiaofengstu.mcams.web.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.google.zxing.WriterException;
import com.xiaofengstu.mcams.dto.AssetDTO;
import com.xiaofengstu.mcams.web.entity.TAsset;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author fengzeng
 * @since 2022-05-07
 */
public interface TAssetService extends IService<TAsset> {

  Page<AssetDTO> getAssetList(Page page);

  TAsset add(TAsset asset);


  Boolean buyApply(TAsset asset);

  String generQRCode(TAsset asset) throws IOException, WriterException;

  List<Map<String,Integer>> getDates();

  List<Map<String,Integer>> getValues();
}
